package client;

import javax.ws.rs.Consumes;
import javax.ws.rs.DELETE;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.PUT;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;

import org.soaism.journey.service.entities.Journey;
import org.soaism.journey.service.messages.ChangeLogResponse;
import org.soaism.journey.service.messages.DeleteLogResponse;
import org.soaism.journey.service.messages.GetLogResponse;
import org.soaism.journey.service.messages.NewLogResponse;

@Path("/journeyservice")
public interface IClient {

	@GET
	@Path("/log/{id}")
	@Consumes("application/json")
	public GetLogResponse getLog(@PathParam("id") int id);

	@PUT
	@Path("/log/{id}")
	@Consumes("application/json")
	public ChangeLogResponse changeLog(@PathParam("id") int id, Journey body);

	@POST
	@Path("/log")
	@Consumes("application/json")
	public NewLogResponse createLog(Journey param);

	@DELETE
	@Path("/log/{id}")
	@Consumes("application/json")
	public DeleteLogResponse deleteLog(@PathParam("id") int id);
	
}